/*
 * Copyright (c)  2015~2020, xforceplus
 * All rights reserved.
 * Project:datacare-orm
 * Id: ConstantEnum.java   2020-10-08 00-05-37
 * Author: Evan
 */
package cn.datacare.orm.constant;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: 2015~2020
 * </p>
 * <p>
 * Company/Department: xforceplus
 * </p>
 *
 * @author Evan
 * <b>Creation Time:</b> 2020-10-08 00-05-37
 * @since V1.0
 */
public enum SqlSourceType {
    SELECT_BY_ID("_gen_selectById"),
    SELECT_BY_TEMPLATE("_gen_selectByTemplate"),
    SELECT_COUNT_BY_TEMPLATE("_gen_selectCountByTemplate"),
    DELETE_BY_ID("_gen_delById"),
    SELECT_ALL("_gen_selectAll"),
    UPDATE_ALL("_gen_updateAll"),
    UPDATE_BY_ID("_gen_updateById"),
    UPDATE_TEMPLATE_BY_ID("_gen_updateTemplateById"),
    INSERT("_gen_insert"),
    INSERT_TEMPLATE("_gen_insertTemplate"),
    DELETE_TEMPLATE_BY_ID("_gen_deleteTemplateById"),
    LOCK_BY_ID("_gen_selectByIdForUpdate"),
    EXIST_BY_ID("_gen_existById"),
    ;
    /**
     * ClassSql
     */
    private final String classSql;

     SqlSourceType(String classSQL) {
        this.classSql = classSQL;
    }

    public String getClassSql() {
        return classSql;
    }
}
